<?php
require_once $ubi['SERVER']['SERVER_ROOT'] . '/dao/daoCategory.php';

require_once $ubi['SERVER']['SERVER_ROOT'] . '/model/category.php';

require_once $ubi['SERVER']['SERVER_ROOT'] . '/utility/xmlToArrayParser.php';

class CategoryBus {
	private $_categoryDao;
	
	public function __construct() {
		$this->_categoryDao = new CategoryDao();				
	}
	
	public function getCategoryProviderList($parentID) {
		return $this->_categoryDao->getCategoryProviderList($parentID);		
	}		
	
	public function getCategoryProviderFromID($catID) {
		return $this->_categoryDao->getCategoryProviderFromID($catID);			
	}
	
	public function getCategoryItemList($parentID) {
		return $this->_categoryDao->getCategoryItemList($parentID);	
	}		
	
	public function getCategoryItemFromID($catID) {
		return $this->_categoryDao->getCategoryItemFromID($catID);			
	}	
} 
?>